﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;

namespace MasApp.DAL
{
    /// <summary>
    ///SqlCmd 的摘要说明
    /// </summary>
    public class SqlCmd
    {
        private string con;

public string Con
{
  get { return con; }
  set { con = value; }
}
        public SqlCmd()
        {
            //
            //TODO: 在此处添加构造函数逻辑
            //
        }
        public SqlCmd(string con)
        {
            this.con = con;
        }
        /// <summary>
        /// 查询（sql语句，查询语句的类型），返回第一行第一列
        /// </summary>
        /// <param name="sql"></param>
        /// <param name="commandtype"></param>
        /// <returns></returns>
        public static object ExecuteScalar(string sql, CommandType commandtype)
        {
            return ExecuteScalar(sql, commandtype);
        }
    }
}